package bll

import (
	"jgt-oper/src/model"
	"jgt-oper/src/schema"
)

// EnterHistory 门牌历史
type EnterHistory struct {
	EnterHistoryModel model.IEnterHistory `inject:"IEnterHistory"`
}

// QueryPage 查询分页
func (a *EnterHistory) QueryPage(params *schema.EnterHistoryQueryParam) (interface{}, interface{}, error) {
	return a.EnterHistoryModel.QueryPage(params)
}

// InsertItem 插入历史
func (a *EnterHistory) InsertItem(item *schema.EnterpriseParkHistory) error {
	return a.EnterHistoryModel.InsertItem(item)
}
